﻿function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1) {
			status++;
		} else {
			status--;
		}

		if (cm.getMapId() == 240080500) {
			if (status == 0) {
				cm.sendYesNo("你确定要放弃副本.想离开这里么?");
			} else if (status == 1) {
				cm.warp(240080000);
				cm.dispose();
			} else if (status == 2) {
				cm.dispose();
			}
		} else {
			cm.dispose();
		}
	}
}
